package com.cg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.Instant;

@Data
@TableName("public.stock")
public class Stock {


    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    @TableField(value = "commodity_name")
    private String commodityName;

    @TableField(value = "create_time")
    private Instant createTime;

    @TableField(value = "create_by")
    private Integer createBy;

    @TableField(value = "count")
    private Integer count;

}
